﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;

namespace GaiNo.Core.Services
{
    public interface IApplicationContext
    {
        /// <summary>
        /// 登录信息
        /// </summary>
        /// <value>The sign info.</value>
        IUser User { get; }
        /// <summary>
        /// 日志记录
        /// </summary>
        /// <value>The log.</value>
        ILog Log { get; }

        /// <summary>
        /// 加密解密
        /// </summary>
        /// <value>The crypto.</value>
        ICrypto Crypto { get; }

        /// <summary>
        /// 语言包
        /// </summary>
        /// <value>The language recource.</value>
        ILanguageResource LanguageRecource { get; }
        /// <summary>
        /// 验证码
        /// </summary>
        /// <value>The auth code.</value>
        IAuthCode AuthCode { get; }

        /// <summary>
        /// 消息
        /// </summary>
        /// <value>The message.</value>
        IMessage Message { get; }
    }
}
